<include file="Common:layout" />
<body style="background-color: rgb(255, 255, 255); overflow: auto; cursor: default; -moz-user-select: inherit;">
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <div class="subject">
                <h3>充值记录</h3>
                <h5>代理充值记录展示</h5>
            </div>
        </div>
    </div>

    <div class="flexigrid">
        <div class="mDiv">
            <form action="" class="navbar-form form-inline" method="post" onsubmit="return false;">
                <div class="sDiv">
                    <div class="sDiv2">
                        <select id="astatus" class="select">
                            <option value="">审核状态</option>
                            <option value="0">未审核</option>
                            <option value="1">已通过</option>
                            <option value="2">未通过</option>
                        </select>
                        <!--排序规则-->
                        <input type="text" size="30" id="aName" placeholder="代理姓名...">
                        <input type="hidden" id="orderby1" value="record_time"/>
                        <input type="hidden" id="orderby2" value="DESC"/>
                        <input type="button" class="btn" value="搜索" onclick="ajax_get_table(1);"/>
                    </div>
                </div>
            </form>
        </div>
        <div class="hDiv">
            <div class="hDivBox">
                <table cellspacing="0" cellpadding="0">
                    <thead>
                    <tr>
                        <th align="left" abbr="article_title" axis="col6">
                            <div style="text-align: left; width:50px;" class="">ID</div>
                        </th>
                        <th align="left" abbr="ac_id" axis="col4">
                            <div style="text-align: center; width: 130px;">代理名称</div>
                        </th>
                        <th align="center" abbr="article_show" axis="col6">
                            <div style="text-align: center; width: 80px;">充值金额</div>
                        </th>
                        <th align="center" abbr="article_time" axis="col6">
                            <div style="text-align: center; width: 100px;">支付方式</div>
                        </th>
                        <th align="center" abbr="article_time" axis="col6">
                            <div style="text-align: center; width: 100px;">充值时间</div>
                        </th>
                        <th align="center" abbr="article_time" axis="col6">
                            <div style="text-align: center; width: 100px;">充值IP</div>
                        </th>
                        <th align="center" abbr="article_time" axis="col6">
                            <div style="text-align: center; width: 100px;">充值备注</div>
                        </th>
                        <th align="center" abbr="article_time" axis="col6">
                            <div style="text-align: center; width: 80px;">审核状态</div>
                        </th>
                        <!--<th align="center" abbr="article_time" axis="col6">-->
                        <!--<div style="text-align: center; width: 80px;">操作</div>-->
                        <!--</th>-->
                        <th style="width:100%" axis="col7">
                            <div></div>
                        </th>
                    </tr>
                    </thead>
                </table>
            </div>
        </div>
        <div class="tDiv">
            <div style="clear:both"></div>
        </div>

        <div id="ajax_return"></div>
    </div>
</div>
<script type="text/javascript">
    $(document).ready(function(){
        // ajax 加载商品列表
        ajax_get_table(1);

        // 刷选条件 鼠标 移动进去 移出 样式
        $(".hDivBox > table > thead > tr > th.mhover").mousemove(function(){
            $(this).addClass('thOver');
        }).mouseout(function(){
            $(this).removeClass('thOver');
        });
    });


    // ajax 抓取页面 form 为表单id  page 为当前第几页
    function ajax_get_table(page){
        cur_page = page; //当前页面 保存为全局变量
        $.ajax({
            type : "POST",
            url:"{:U('Account/ajax_account_list')}",
            data : {
                p :page,
                astatus :$("#astatus").val(),
                aName :$("#aName").val(),
                orderby1 :$("#orderby1").val(),
                orderby2 :$("#orderby2").val()
            },
            success: function(data){
                $("#ajax_return").html('');
                $("#ajax_return").append(data);
            }
        });
    }

    // 点击排序
    function sort(field)
    {
        $("#orderby1").val(field);
        var v = $("#orderby2").val() == 'desc' ? 'asc' : 'desc';
        $("#orderby2").val(v);
        ajax_get_table(cur_page);
    }
</script>
</body>
</html>